<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<title></title>
		<!-- <link rel="stylesheet" href="css/new_file.css" /> -->
        <script src="__PUBLIC_JS__/jquery.2.1.4.min.js" charset="utf-8"></script>
        <script src="__PUBLIC_JS__/layer/layer.js" charset="utf-8"></script>
        <style media="screen">
        *{
            padding: 0px;
            margin: 0px;
        }
        .clear{
            clear: both;
        }
        a{
            text-decoration: none;
        }
        li{
            list-style: none;
        }
        img{
            display: block;
        }
        .index-top{
            width: 100%;
            margin: 0 auto;
            height: 70px;
            background-color: #009601;
            padding: 5px 0;
        }
        .index-top ul{
            width: 1200px;
            margin: 0 auto;
        }
        .index-top ul li img{
            width: 40px;
            margin-left: auto;
            margin-right: auto;
            padding: 5px 0 0 0;
        }
        .index-top ul li a{
            color: #fff;
            font-size: 16px;

        }
        .index-top ul li a:hover{
            text-decoration: underline;
        }
        .index-top ul li{
            float: left;
            width: 16.6%;
            text-align: center;

        }
        .index-body{
            width: 1200px;
            margin: 0 auto;
            padding: 90px 0;
        }
        .index-body-l{
            width: 280px;
            height: 280px;
            background-color: #009601;
            border-radius: 100%;
            float: left;
            box-shadow: 0 0 0 5px #fff inset;
            border: solid 1px #009601;
        }
        .index-body-l img{
            margin-left: auto;
            margin-right: auto;
            padding-top: 50px;
            width: 110px;
        }
        .index-body-l p{
            text-align: center;
            padding-top: 20px;
            color: #FFFFFF;
            font-size: 26px;
        }
        .index-body-c{
            float: left;
            margin-top: 70px;
            margin-left: 100px;


        }
        .index-body-c p{
            width: 230px;
            height: 50px;
            border-radius: 25px;
            background-color: #009601;
            text-align: center;
            line-height: 50px;
            margin-top: 30px;
            box-shadow: 0 0 0 3px #fff inset;
            border: solid 1px #009601;
        }
        .index-body-c p a{
            color: #fff;
            font-size: 20px;
        }
        .index-body-r{
            float: right;
        }
        .index-body-r p{
            width: 230px;
            height: 50px;
            border-radius: 25px;
            background-color: #009601;
            text-align: center;
            line-height: 50px;
            margin-top: 30px;
            color: #FFFFFF;
            font-size: 20px;
            box-shadow: 0 0 0 3px #fff inset;
            border: solid 1px #009601;
        }
        .xx-time span{
            display: block;
            border:  solid 2px #009601;
            text-align: center;
            padding: 10px 0;
            margin: 15px 0;
        }
        .index-footer{
            border-top: dashed 1px #009601;
        }



        .index-footer ul{
            width: 1200px;
            margin: 0 auto;
        }
        .index-footer ul li{
            float: left;
            width: 16.6%;
            text-align: center;
            padding:  10px 0 0 0;
        }
        .index-footer ul li img{
            margin-left: auto;
            margin-right: auto;
        }
        .index-footer ul li a{
            color: #333;
            display: inline-block;
            margin-top: 3px;
        }
        .banquan{
            background-color: #009601;
            text-align: center;
            padding: 15px 0;
            color: #FFFFFF;
            margin-top: 45px;
        }

        </style>
	</head>
	<body>
		<div class="index-top">
			<ul>
				<li>
					<img src="__ADMIN_IMG__/ico-01.png" alt="" />
					<a href="#">美容系统管理平台</a>
				</li>
				<li>
					<img src="__ADMIN_IMG__/ico-02.png" alt="" />
					<a href="{:url('user/records/project')}">美容报表</a>
				</li>
				<li>
					<img src="__ADMIN_IMG__/ico-03.png" alt="" />
					<a href="{:url('warehouse/stock/index')}">仓库明细</a>
				</li>
				<li>
					<img src="__ADMIN_IMG__/ico-04.png" alt="" />
					<a href="{:url('warehouse/stock/realzong')}">实时库存</a>
				</li>
				<li>
					<img src="__ADMIN_IMG__/ico-05.png" alt="" />
					<a href="{:url('finance/system_balance/index')}">账户明细</a>
				</li>
				<li>
					<img src="__ADMIN_IMG__/ico-06.png" alt="" />
					<a href="{:url('shouyin/aftermarket/card')}">售后</a>
				</li>
			</ul>
		</div>
		<div class="index-body">
            <a href="{:url('finance/reim/index')}">
                <div class="index-body-l">
                    <img src="__ADMIN_IMG__/shuju-ico.png" alt="" />
                    <p>报销单</p>
                </div>
            </a>

			<div class="index-body-c">
				<p><a href="{:url('shouyin/subscribe/index',['state'=>1])}">预约</a></p>
				<p><a href="{:url('shouyin/subscribe/index',['state'=>0])}">开单</a></p>
			</div>
			<div class="index-body-r">
				<p>提醒信息</p>
				<div class="xx-time">
                    {if $admin_type == '前台'}
					<span><a href="{:url('shouyin/subscribe/index',['state'=>1])}">预约单 {$sub5|default="0"}</a></span>
                    <span><a href="{:url('shouyin/subscribe/index',['state'=>0])}">收银开单 {$sub2|default="0"}</a></span>
                    <span>流失客户 {$userlagincount}</span>
                    <span class="userbircount">近七天过生日客户 {$userbircount}</span>
                    {/if}
                    {if $admin_type == '顾问' }
					<span><a href="{:url('shouyin/subscribe/index',['state'=>0])}">顾问开单 {$sub0|default="0"}</a></span>
                    {/if}
                    {if $admin_type == '库管'}
					<span><a href="{:url('shouyin/subscribe/index',['state'=>0])}">库管开单 {$sub1|default="0"}</a></span>
                    {/if}
                    {if $admin_type == '财务'}
					<span><a href="{:url('shouyin/subscribe/index',['state'=>0])}">财务审核 {$sub3|default="0"}</a></span>
                    {/if}
                    {if $admin_type == '管理员'}
                    <span><a href="{:url('shouyin/subscribe/index',['state'=>1])}">预约单 {$sub5|default="0"}</a></span>
                    <span><a href="{:url('shouyin/subscribe/index',['state'=>0])}">收银开单 {$sub2|default="0"}</a></span>
                    <span><a href="{:url('shouyin/subscribe/index',['state'=>0])}">顾问开单 {$sub0|default="0"}</a></span>
                    <span><a href="{:url('shouyin/subscribe/index',['state'=>0])}">库管开单 {$sub1|default="0"}</a></span>
                    <span><a href="{:url('shouyin/subscribe/index',['state'=>0])}">财务审核 {$sub3|default="0"}</a></span>
                    <span class="liushi">流失客户 {$userlagincount}</span>
                    <span class="userbircount">近七天过生日客户 {$userbircount}</span>
                    {/if}
                    <span><a href="{:url('shouyin/subscribe/index',['state'=>0])}">操作单数据异常 {$sub6|default="0"}</a></span>
                    <span><a href="{:url('shouyin/product/index',['status'=>3])}">产品单数据异常 {$sub7|default="0"}</a></span>
<script type="text/javascript">
$(document).on('click','.liushi', function(){
    layer.open({
      type: 2,
      title: '流失客户',
      shadeClose: true,
      shade: 0.8,
      area: ['600px', '500px'],
      content: '{:url('getliushi')}' //iframe的url
    });
})
    $(document).on('click','.userbircount', function(){
        layer.open({
          type: 2,
          title: '近七天过生日客户',
          shadeClose: true,
          shade: 0.8,
          area: ['600px', '500px'],
          content: '{:url('getuserbircount')}' //iframe的url
        });
    })
</script>
				</div>
			</div>

			<div class="clear"></div>
		</div>

		<div class="index-footer">
			<ul>
				<li>
					<img src="__ADMIN_IMG__/footer-ico1.png" alt="" />
					<a href="{:url('user/index/index')}">顾客管理</a>
				</li>
				<li>
					<img src="__ADMIN_IMG__/footer-ico2.png" alt="" />
					<a href="{:url('finance/achievements/ledger')}">财务管理</a>
				</li>
				<li>
					<img src="__ADMIN_IMG__/footer-ico3.png" alt="" />
					<a href="{:url('warehouse/purchase/index')}">进销管理</a>
				</li>
				<li>
					<img src="__ADMIN_IMG__/footer-ico4.png" alt="" />
					<a href="{:url('warehouse/index/index')}">库房管理</a>
				</li>
				<li>
					<img src="__ADMIN_IMG__/footer-ico5.png" alt="" />
					<a href="{:url('system/user/index')}">员工管理</a>
				</li>
				<li>
					<img src="__ADMIN_IMG__/footer-ico6.png" alt="" />
					<a href="{:url('shouyin/recharge/index')}">充值</a>
				</li>
				<div class="clear"></div>
			</ul>
		</div>
		<div class="banquan">
			<!-- <p>版权所有:啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊</p> -->
		</div>
	</body>
</html>
